﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="SisLegal.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>SUAL - Login </title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="Public/css/bootstrap.min.css" rel="stylesheet" />
    <link href="Public/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="Public/css/animate.css" rel="stylesheet" />
    <link href="Public/css/style.css" rel="stylesheet" />
    <script type="text/javascript" src="<%= Page.ResolveClientUrl("/Public/js/jquery-2.1.1.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveClientUrl("/Public/js/bootstrap.min.js") %>"></script>
    <script language="JavaScript" type="text/javascript">
        //var dispositivo = navigator.userAgent.toLowerCase();
        //alert(dispositivo.toString());

        function objeto(objectId) {
            return (document.getElementById(objectId));
        }

        function validarlogon() {
            if (objeto("txtUsuario").value == "") {
                objeto("lblMensaje").innerHTML = "Debe ingresar un usuario!!";
                objeto("txtUsuario").focus();
                return false;
            }
            if (objeto("txtClave").value == "") {
                objeto("lblMensaje").innerHTML = "Debe ingresar una clave!!";
                objeto("txtClave").focus();
                return false;
            }
        }
    </script>
</head>
<body class="gray-bg">
    <form id="form1" runat="server">
    <div class="middle-box text-center loginscreen animated fadeInDown">
        <div>
            <div>
                <h1 class="logo-name" style="margin-left: -50px;">
                    SUAL</h1>
            </div>
            <h3>
                Bienvenidos a SUAL</h3>
            <p>
                Sistema Unico Asesoria Legal - SEAL
                <!--Continually expanded and constantly improved Inspinia Admin Them (IN+)-->
            </p>
            <p>
                Login</p>
            <div class="m-t" role="form" ">
            <div class="form-group">
                <asp:TextBox ID="txtUsuario" runat="server" MaxLength="20" class="form-control" placeholder="Usuario"></asp:TextBox>
            </div>
            <div class="form-group">
                <asp:TextBox ID="txtClave" runat="server" MaxLength="20" class="form-control" TextMode="Password"
                    placeholder="Password"></asp:TextBox>
            </div>
            <div style="height: 25px;" align="center">
                <asp:Label ID="lblMensaje" runat="server"></asp:Label>
            </div>
            <asp:Button ID="btnValidar2" class="btn btn-primary block full-width m-b" runat="server"
                Text="Iniciar sesion" OnClick="btnValidar2_Click1" OnClientClick="return validarlogon()" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
